home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Utilities
/
Programming
/
EnterAct 3.5
/
Drag_on Modules
/
hAWK programs
/
$TwoColumnsRight
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-11-03
|
275 b
|
15 lines
|
[
TEXT/KEEN
]
#Give this program two columns of numbers to work on.
{ one[++n] = $1
two[n] = $2
if (w1 < length($1))
w1 = length($1)
if (w2 < length($2))
w2 = length($2)
}
END {w1 += 2; w2 += 2;
for (i = 1; i <= n; ++i)
printf "%" w1 "s" "%" w2 "s\n", one[i], two[i]
}